export const constantRoutes = [
    //layout页
    {
        path: '/',
        //@ts-ignore
        component: () => import("../lesson/index.vue"),
        redirect: '/ch1/1',
        children: [
            {
                path: '/ch1/1',
                //@ts-ignore
                component: () => import("../lesson/chapter1/index1.vue"),
                meta: {
                    title: '第一章/第1节:模型'
                }
            },
            {
                path: '/ch1/2',
                //@ts-ignore
                component: () => import("../lesson/chapter1/index2.vue"),
                meta: {
                    title: '第一章/第2节:光照'
                }
            },
            {
                path: '/ch1/3',
                //@ts-ignore
                component: () => import("../lesson/chapter1/index3.vue"),
                meta: {
                    title: '第一章/第3节:动画'
                }
            },
            {
                path: '/ch1/4',
                //@ts-ignore
                component: () => import("../lesson/chapter1/index4.vue"),
                meta: {
                    title: '第一章/第4节:交互控制'
                }
            },
            {
                path: '/ch1/5',
                //@ts-ignore
                component: () => import("../lesson/chapter1/index5.vue"),
                meta: {
                    title: '第一章/第5节:响应窗口变化'
                }
            }

        ],
    },
    {
        path: '/ch2/',
        component: () => import("../lesson/index.vue"),
        redirect: '/ch2/1',
        children: [
            {
                path: '/ch2/1',
                //@ts-ignore
                component: () => import("../lesson/chapter2/index1.vue"),
                meta: {
                    title: "第二章/第1节:基础场景"
                }
            }
        ]
    },
    {
        path: '/demo1',
        //@ts-ignore
        component: () => import("../lesson/demo/planeIndex.vue"),
        meta: {
            title: "飞机案例"
        }
    },
    {
        path: '/demo2',
        //@ts-ignore
        component: () => import("../lesson/demo/FbxAnimaIndex.vue"),
        meta: {
            title: "fbx动画案例"
        }
    },
    {
        path: '/demo3',
        //@ts-ignore
        component: () => import("../lesson/demo/carIndex.vue"),
        meta: {
            title: "汽车动画案例"
        }
    },
    {
        path: '/demo4',
        //@ts-ignore
        component: () => import("../lesson/demo/glbAnimaIndex.vue"),
        meta: {
            title: "飞机动画案例"
        }
    },
    {
        path: '/demo5',
        //@ts-ignore
        component: () => import("../lesson/demo/glbActionsAnimaIndex.vue"),
        meta: {
            title: "飞机动画组案例"
        }
    }
]